/*
 * @Date: 2022-01-15 21:05:30
 * @LastEditors: LeeKing
 * @LastEditTime: 2022-01-15 22:18:20
 * @FilePath: /react-hmmm/src/api/Login/index.js
 */
import request from 'utils/request.js'

/**
 *  登录
 * @param {*} data  {username,password}
 * @returns
 */
export const login = (username, password) => {
  return request({
    url: '/frame/login',
    method: 'POST',
    data: { username, password }
  })
}
